<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<load href="__PUBLIC__/css/lwy2011.css" />
<load href="__PUBLIC__/Css/common.css" />
<script type="text/javascript" src="__ROOT__/Public/Js/jquery-1.5.0.min.js"></script>
<script type="text/javascript" src="__ROOT__/Public/Js/core.js"></script>
<title>文章列表页</title>
<script>
function checkForm(){
   //alert('b');
   var flag=false;
   $(":checkbox").each(function () {
        if($(this).attr("checked")){
		  flag=true;
		  //break;
		  }
      });
   if(flag){
   document.listForm.submit();
   return false;
   }
   else {
     alert('未选择任何内容');
     return false;
   }
}
</script>
</head>
<body>

<div style="width:960px; margin:50px auto; text-align:center;">
   <layout name="Public:sns-header" cache="0" />
   <div style="width:80%; float:left; background-color:#FF9933">
  <form action="index.php?s=SNSAdmin/setRecommendOrder" method="post">
  <table width="647" border="0" align="center">
  <tr align="center">
    <th width="188">序号</td>
    <th width="222">标题</td>
    <th width="119">排序</td>
    <th width="100">操作</td>  </tr>
  <volist name='list' id='item'>
  <tr>
    <td>
    <input type="checkbox" name="dids[]" value="{$item['id']}" />
    <input name="ids[]" type="hidden" value="{$item['id']}" />{$item['id']}</td>
    <td>{$item['title']}</td>
    <td><input name="order[]" type="text" size="5" maxlength="3" value="{$item['sort']}" /></td>
    <td>&nbsp;&nbsp;<a href="index.php?s=SNSAdmin/delRecommend/id/{$item['id']}" onclick="return confirm('确定删除该记录？')">删除</a></td>
  </tr>
  </volist>
  <tr>
    <td colspan="2">操作:【<a href='' onclick="return checkForm();">删除选择推荐内容</a>】【<a href="index.php?s=SNSAdmin">&gt;&gt;文章列表</a>】</td>
    <td colspan="2"><label>
    <input type="submit" name="Submit" value="排序" />
    </label></td>
    </tr>
</table>
</form>
</div></div>

</body>
</html>
